home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / order_alist < prev    next >
Text File  |  2001-06-04  |  1KB  |  29 lines

  1. SYNOPSIS
  2.         mixed *order_alist(mixed *keys, mixed *|void data, ...)
  3.  
  4. DESCRIPTION
  5.         Creates an alist.
  6.  
  7.         Either takes an array containing keys, and others containing
  8.         the associated data, where all arrays are to be of the same
  9.         length, or takes a single array that contains as first member
  10.         the array of keys and has an arbitrary number of other members
  11.         containing data, each of wich has to be of the same length as
  12.         the key array. Returns an array holding the sorted key array
  13.         and the data arrays; the same permutation that is applied to
  14.         the key array is applied to all data arrays.
  15.  
  16.         Complexity is O(n * lg(n) + n * m), where n is the number of
  17.         elements in the key array and m is the number of data arrays + 1.
  18.  
  19.         Note that the dimensions of the arrays are used the other
  20.         way than in lisp to allow for faster searching.
  21.  
  22.         Keys have to be of type integer, string or object. Types can
  23.         be mixed.
  24.  
  25. SEE ALSO
  26.         alists(LPC), mappings(LPC), insert_alist(E), assoc(E),
  27.         transpose_array(E)
  28.  
  29.